﻿/********************************************************************************************
 * Time de desenvolvedores
 *  Vinícius Batista de Souza       @vbs_br
 *  Fermando Martin Figuera         @fernandomartin
 *  
 *  
 * Jogo desenvolvido para testar algumas features e produzir trilha de treinamento no MSDN.
 * Faça o download do SDK do Windows Phone, faça você também o seu jogo :)
 * 
 * Dúvidas utilizem o Forúm do Windows Phone no MSDN.
********************************************************************************************/



using System;
using System.Windows;
using Microsoft.Phone.Controls;

namespace ComboBUG
{
    public partial class EndOfGame : PhoneApplicationPage
    {
        #region EndOfGame
        public EndOfGame()
        {
            InitializeComponent();
            MainMenu.Click += new RoutedEventHandler(MainMenu_Click);
        }
        #endregion

        #region MainMenu_Click
        void MainMenu_Click(object sender, RoutedEventArgs e)
        {
            NavigationService.Navigate(new Uri("/MainPage.xaml", UriKind.Relative));
        }
        #endregion

        #region OnBackKeyPress
        protected override void OnBackKeyPress(System.ComponentModel.CancelEventArgs e)
        {

            NavigationService.Navigate(new Uri(string.Format("/MainPage.xaml"), UriKind.Relative));
            e.Cancel = true;

        }
        #endregion

    }
}